<template>
  <default-card v-if="card!=null" :is-kp="isKp" :card="card"></default-card>
  <template v-else>
    无此卡面,你可以<a>新建卡面</a>
  </template>
</template>

<script>
import DefaultCard from "@/components/card/DefaultCard";

export default {
  name: "CardView",
  components: {DefaultCard},
  computed: {
    card() {
      return this.$store.getters.cardByIndex(this.$route.params.id)
    },
    isKp(){
      return this.$store.getters.isKP
    }
  }
}
</script>

<style scoped>

</style>
